For each semaphore for which the calling process has set a _ssss_eeee_mmmm_aaaa_dddd_jjjj
value [see _ssss_eeee_mmmm_oooo_pppp(2)], that _ssss_eeee_mmmm_aaaa_dddd_jjjj value is added to the _ssss_eeee_mmmm_vvvv_aaaa_llll of
the specified semaphore.
If the process has a process, text, or data lock, an _u_n_l_o_c_k is
performed [see _pppp_llll_oooo_cccc_kkkk(2)]. If the process has any pages locked, they
are unlocked [see _mmmm_pppp_iiii_nnnn(2)].
An accounting record is written on the accounting file if the
system's accounting routine is enabled [see _aaaa_cccc_cccc_tttt(2)].
If the process is a controlling process, _SSSS_IIII_GGGG_HHHH_UUUU_PPPP is sent to the
foreground process group of its controlling terminal and its
controlling terminal is deallocated.
If the calling process has any stopped children whose process group
will be orphaned when the calling process exits, or if the calling
process is a member of a process group that will be orphaned when
the calling process exits, that process group will be sent _SSSS_IIII_GGGG_HHHH_UUUU_PPPP
and _SSSS_IIII_GGGG_CCCC_OOOO_NNNN_TTTT signals. Note that these signals are not sent if the
process became the process group leader through the invocation of
the _ssss_eeee_tttt_pppp_gggg_rrrr_pppp(2) system call.
In all cases, if the calling process is a process group leader and
has an associated controlling terminal, the controlling terminal is
disassociated from the process allowing it to be acquired by another
process group leader.
Any mapped files are closed and any written pages flushed to disk.
The C function _eeee_xxxx_iiii_tttt(3C) calls any functions registered through the _aaaa_tttt_eeee_xxxx_iiii_tttt
function in the reverse order of their registration. It then causes each
buffered file stream to be flushed, and, unless an _ssss_pppp_rrrr_oooo_cccc has been
executed, closed. The function ______eeee_xxxx_iiii_tttt circumvents all such functions and
cleanup.
The symbols _EEEE_XXXX_IIII_TTTT______SSSS_UUUU_CCCC_CCCC_EEEE_SSSS_SSSS and _EEEE_XXXX_IIII_TTTT______FFFF_AAAA_IIII_LLLL_UUUU_RRRR_EEEE are defined in _ssss_tttt_dddd_llll_iiii_bbbb_...._hhhh and may
be used as the value of _s_t_a_t_u_s to indicate successful or unsuccessful